package whileControl;

public class Rhomboid {

	public static void main(String[] args) {
		// 画出菱形
		for (int i = 0; i < 5; i++) {
			for (int j = 5-i; j>1; j--) {
				System.out.print(" ");
			}
			for(int j=0;j<2*i+1;j++) {
				System.out.print("*");
			}
			System.out.println("");
		}
		for (int i = 3; i>=0; i--) {
			for (int j = 5-i; j>1; j--) {
				System.out.print(" ");
			}
			for(int j=0;j<2*i+1;j++) {
				System.out.print("*");
			}
			System.out.println("");
		}
	}

}
